import constant from '../../../constant';
import { post, param } from '../../request';

export default {
    page: (form = {
        page: 1,
        size: 20,
        keyWord: null,
        sort: "desc",
        order: "createTime"
    }) => post(constant.API.SYSTEM.USER.PAGE + '?' + param(form)),
    update: (user) => post(constant.API.SYSTEM.USER.UPDATE, user),
    delete: (form = {
        ids: null
    }) => post(constant.API.SYSTEM.USER.DELETE, form)
}
